package top.jiangqiang.servicedubboconsumer;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.jiangqiang.api.DemoService;

@RestController
@RequestMapping
public class TestController {
    @DubboReference
    DemoService demoService;

    @GetMapping("/")
    public String test() {
        return demoService.test();
    }
}
